#ifndef CBSPLASH_SCREEN_H
#define CBSPLASH_SCREEN_H

#include <wx/bitmap.h>
#include <wx/dc.h>
#include <wx/timer.h>
#include <wx/frame.h>

class M_Code_SplashScreen : public wxFrame {
  private:
    wxBitmap m_label;
    wxTimer m_timer;
  public:
    M_Code_SplashScreen( wxBitmap &label, long timeout, wxWindow *parent, wxWindowID id, long style = wxSTAY_ON_TOP | wxNO_BORDER | wxFRAME_NO_TASKBAR | wxFRAME_SHAPED );
    ~M_Code_SplashScreen();
    static void DrawReleaseInfo( wxDC &dc );
  private:
    void DoPaint( wxDC &dc );
    void OnPaint( wxPaintEvent & );
    void OnTimer( wxTimerEvent & );
    void OnCloseWindow( wxCloseEvent & );
    void OnChar( wxKeyEvent & );
    void OnMouseEvent( wxMouseEvent &event );
    DECLARE_EVENT_TABLE()
};

#endif
